home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 32 / Mac Magazin and MacEasy Magazine CD - Issue 32.iso / System / Systemerweiterungen / Powerbook.keyboard.remap Folder / Powerbook.keyboard.remap < prev   
Text File  |  1997-02-04  |  5KB  |  109 lines

  1. This document tells how to make the upper row of function keys on your
  2. PowerBook serve as PageUp, PageDown, Home, End, and Forward Delete. 
  3. -----------------------------------------------------------------------
  4.  
  5. The exact changes made are:
  6.  
  7.      Original Key          New Function
  8.      -----------------------------------
  9.      F5                    End
  10.      F6                    Home
  11.      F7                    PageDown
  12.      F8                    PageUp
  13.      F12                   ForwardDelete
  14.  
  15. (Using F7 for PageUp seems more natural to me, but I made them to match the 
  16. existing up and down arrows on the keyboard. You can, of course,
  17. switch them however you like.)
  18.  
  19. Warnings:
  20. *These changes are "hardwired" into your system, so if you come across a
  21.  program that needs the functions keys, you won't be able to access them.
  22.  
  23. *Work on a *copy* of your system. I made a RAM startup disk and did the 
  24.  changes there first to check it out.
  25.  
  26. -----------------------------------------------------------------------
  27. ** THE EASY WAY TO MODIFY YOUR KEYBOARD **
  28.  
  29.  1) Open the resource file (provided) called "Modified KMAP resource"
  30.  2) Open a *copy* of your System file in ResEdit or Resorcerer.
  31.  3) Copy the only resource in the "Modified KMAP resource" file and
  32.     paste it into the System's resource window. 
  33.  4) When you paste, you will get a warning asking if you want to 
  34.     replace resources with the same ID.
  35.  5) Click [Yes] (*not* the default [No] or [Unique ID]).
  36.  6) In the System file, open the ROv# resource with ID 1660.
  37.  7) Select the last set of '*****'. (On mine it was number 16).
  38.  8) Select 'Insert New Fields' from the Resource menu.
  39.  9) Set the type to KMAP and the Res ID to 0
  40.     (This makes the System look to the new KMAP resource instead of ROM).
  41. 10) Save and close the modified System file.
  42. 11) Pop the current system in the Trash (you can't empty it yet!), put 
  43.     your modified system in the system folder, and restart.
  44.     
  45. -----------------------------------------------------------------------
  46. If you don't like pasting resources into your system file or you want to
  47. change the key assignments (see below), here is the long way to do it.
  48. is how to do the exact same thing the long way.
  49.  
  50. **Instructions for modifying your keyboard by hand**
  51.  
  52.  1) Open a copy of the System in ResEdit or Resorcerer.
  53.  2) Open the resource KMAP ID=0 (not KCHR).
  54.  3) Change the byte at offset $64 from $60 to $77 (F5 now sends End) 
  55.  4) Change the byte at offset $65 from $61 to $73 (F6 now sends Home)
  56.  5) Change the byte at offset $66 from $62 to $79 (F7 now sends PgDn)
  57.  6) Change the byte at offset $68 from $64 to $74 (F8 now sends PgUp)
  58.  7) Change the byte at offset $73 from $6F to $75 (F12 now sends FwdDel)
  59.  8) Close the KMAP resource
  60.  9) In the System file, open the ROv# resource with ID 1660. 
  61. 10) Select the last set of '*****'. (On mine it was number 16).
  62. 11) Select 'Insert New Fields' from the Resource menu.
  63. 12) Set the type to KMAP and the Res ID to 0
  64.       (This makes the System look to your KMAP resource instead of ROM).
  65. l3) Save and close the modified System file.
  66. 14) Pop the current system in the Trash (you can't empty it yet!), put 
  67.       your modified system in the system folder, and restart.
  68. -----------------------------------------------------------------------
  69.  
  70. Notes on manually modifying your KMAP:
  71.  * The offsets are in the leftmost column of the KMAP resource; you change 
  72.    the values in the *middle* column. 
  73.  
  74.  * Don't worry about the letters you see on the right of the KMAP resource
  75.    when it's open. They are just the ASCII for the keycodes. In fact, 
  76.    when you've make the modifications correctly the lowercase alphabet 
  77.    should read 'wsycte' instead of '`abcde' and 'nup' instead of 'nop'.
  78.  
  79.  * These function keys are not to be confused with the FKEY (command-shift-#)
  80.    resources used by the system.
  81.  
  82.  * Not all programs make use of these keys, so try them out in something 
  83.    that you know does.
  84.  
  85.  * Sometimes when you update the system, you have to re-modify the KMAP,
  86.    so keep this file around.
  87.    
  88. -----------------------------------------------------------------------
  89.  
  90. Customization:
  91.  * If you want to use different function keys, you can find out which 
  92.    numbers to change from by opening the KCHR resource ID 0. Press the key 
  93.    you want to reassign, and note the value next to 'Key:' (not Char:). Find
  94.    this number in KMAP resource 0 and change it instead. (For example change
  95.    the 65 instead of 60 to use F9 as Home). 
  96.  
  97. -----------------------------------------------------------------------
  98.  
  99. The instructions are adapted from the "PowerBook Key Remapping guide" 
  100. created by Quinn "The Eskimo!" <quinn@cs.uwa.oz.au>. Thanks to Quinn!  
  101.  
  102. I can't guarantee anything except that these changes have worked without
  103. any problems on System 7.1 up to 7.5.5. 
  104.  
  105. I hope you use them as much as I do.
  106.  
  107. --Steve Haddock
  108. haddock@lifesci.ucsb.edu
  109.